import { request } from '../utils/index.js';
const keys = {
  tx: 'KKVBZ-AKX3W-RLNR6-YZK5D-CVWRH-RLFE2',// 腾讯
  gd: 'f97f327da6cec27ba330a28b275d4504'// 高德
}
// 地址查询
export function search (params) {
  return request({
    url: 'https://restapi.amap.com/v3/place/text?parameters',
    method: 'GET',
    isFullUrl: true,
    data: {
      key: keys['gd'],
      ...params,
    },
  })
}